-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX: Display 'No SBOM' in multi-arch images in HarborUI #21459
base: main
Are you sure you want to change the base?
Conversation
* Updated the `hasChild` method to check for the presence of `child_digest` in the `references` array. * This ensures that SBOMs are correctly displayed for multi-arch images, where child artifacts may contain their own SBOMs. * Previously, No SBOM label was displayed for multi-arch images. Signed-off-by: bupd <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #21459 +/- ##
==========================================
+ Coverage 45.36% 46.25% +0.88%
==========================================
Files 244 247 +3
Lines 13333 13886 +553
Branches 2719 2876 +157
==========================================
+ Hits 6049 6423 +374
- Misses 6983 7124 +141
- Partials 301 339 +38
Flags with carried forward coverage won't be shown. Click here to find out more. |
Hi @bupd , |
@MinerYang Updated the PR description with screenshot. Thanks |
Thank you for contributing to Harbor!
Comprehensive Summary of your change
Changes made
hasChild
method to check for the presence of child images. aka. detecting multi-arch images.Screenshots
Before
After (SBOM column is empty for multi-arch images)
Issue being fixed
Fixes #21424
Please indicate you've done the following: